<template>
  <a-layout style="min-height: 100vh">
    <!-- 顶部导航栏 -->
    <TopNav />
    <a-layout class="sidebar">
      <!-- 左边导航栏 -->
      <Sidebar />
      <!-- 右边内容区域 -->
      <a-layout-content class="layoutcontent">
        <router-view />
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>

<script>
import TopNav from '@/components/TopNav.vue'
import Sidebar from '@/components/Sidebar.vue'

export default {
  components: {
    TopNav,
    Sidebar
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
}
.sidebar{
  position: fixed;
  top:50px;
  background: #243857;
  overflow-y: scroll;
  height: 100%;
}

.layoutcontent{
  margin: 16px;
  width: 100vw;
 overflow-y: scroll;
 height: calc(100vh - 50px);
}
</style>